import requests from '@/plugins/requests'
// 1.1 获取用户基本信息
export const userBaseInfoAPI = (userId) => requests({
  url: `/api/user-service/user/${userId}`
})
// 图片上传
export const uploadImageAPI = (data) => requests({
  url: '/api/vm-service/sku/fileUpload',
  method: 'POST',
  data,
  headers: {
    'Content-Type': 'multipart/form-data'
  }
})
// 用户服务(人员管理)
// 人员搜索(列表页)
export const getUserListAPI = (params) => requests({
  url: '/api/user-service/user/search',
  params
})
// 获取角色列表
export const getRolesListAPI = () => requests({
  url: '/api/user-service/role'
})
// 新增人员
export const addUserAPI = (data) => requests({
  url: '/api/user-service/user',
  method: 'POST',
  data
})
